package com.zbkj.crmeb.order.request;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class BuyerOrderRequest implements Serializable {

    //订单编号
    @JSONField(name ="order_sn")
    private String orderSn;
    //收货人姓名
    @JSONField(name ="consignee")
    private String consignee;
    //收货人电话
    @JSONField(name ="mobile")
    private String mobile;
    //国家
    @JSONField(name ="region")
    private String region;
    //省
    @JSONField(name ="province")
    private String province;
    //市
    @JSONField(name ="city")
    private String city;
    //区
    @JSONField(name ="district")
    private String district;
    //详细地址
    @JSONField(name ="address")
    private String address;
    //发货人姓名
    @JSONField(name ="shipper_name")
    private String shipperName;
    //发货人电话
    @JSONField(name ="shipper_mobile")
    private String shipperMobile;
    //发货类型：1为快递，2为自提
    @JSONField(name ="shipping_type")
    private Integer shippingType;
    //订单商户列表
    @JSONField(name ="goods_list")
    private List<Goods> goodsList;

    @Data
    public static class Goods{
        //商品数量
        @JSONField(name ="qty")
        private Integer qty;
        //喜洋洋：spec_id
        @JSONField(name ="sku_id")
        private String skuId;
        //商品规格：颜色,尺码
        @JSONField(name ="attr")
        private String attr;

    }
}
